import request from '@/utils/request'

// 查询驻场片区列表
export function listStationAreaAnagement(query) {
  return request({
    url: '/StationAreaManagement/StationAreaAnagement/list',
    method: 'get',
    params: query
  })
}

// 查询驻场片区详细
export function getStationAreaAnagement(id) {
  return request({
    url: '/StationAreaManagement/StationAreaAnagement/' + id,
    method: 'get'
  })
}

// 新增驻场片区
export function addStationAreaAnagement(data) {
  return request({
    url: '/StationAreaManagement/StationAreaAnagement',
    method: 'post',
    data: data
  })
}

// 修改驻场片区
export function updateStationAreaAnagement(data) {
  return request({
    url: '/StationAreaManagement/StationAreaAnagement',
    method: 'put',
    data: data
  })
}

// 删除驻场片区
export function delStationAreaAnagement(id) {
  return request({
    url: '/StationAreaManagement/StationAreaAnagement/' + id,
    method: 'delete'
  })
}
